<%@ page language="java" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ page isELIgnored="false" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="pragma" content="no-cache"/>
    <meta http-equiv="cache-control" content="no-cache"/>
    <meta http-equiv="expires" content="0"/>
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3"/>
    <meta http-equiv="description" content="This is my page"/>

    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/static/css/base.css"/>
    <link href="${pageContext.request.contextPath}/static/css/daoke.css" rel="stylesheet" type="text/css"/>

    <link href="${pageContext.request.contextPath}/static/css/iconfont.css" rel="stylesheet" type="text/css"/>
    <script language="javascript">
        function c() {
            if (document.formAdd.name.value == "") {
                alert("请输入科室名称");
                return false;
            }

            document.formAdd.submit();
        }
    </script>
</head>

<body leftmargin="8" topmargin="8" >
<form action="${pageContext.request.contextPath}/admin/addDepartment.html" name="formAdd" method="post">
    <table width="70%" border="0" cellpadding="0" cellspacing="0" bgcolor="#CBD8AC">
        <tr bgcolor="#EEF4EA" style="height: 30px;">
            <td colspan="3"  class='title'>
                <i class="iconfont icon-jia1 font16"></i>添加科室
            </td>
        </tr>
        <tr align='center' bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='red';"
            onMouseOut="javascript:this.bgColor='#FFFFFF';" height="35">
            <td width="25%" bgcolor="#FFFFFF" align="right">
                科室名称：
            </td>
            <td width="75%" bgcolor="#FFFFFF" align="left">
                <input type="text" name="name" size="60" style="width: 200px;"/>
            </td>
        </tr>
        <tr align='center' bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='red';"
            onMouseOut="javascript:this.bgColor='#FFFFFF';" height="35">
            <td width="25%" bgcolor="#FFFFFF" align="right">
                &nbsp;
            </td>
            <td width="75%" bgcolor="#FFFFFF" align="left">
                <input type="button" value="提交" onclick="c()"  style="width: 80px;height: 30px;box-sizing: border-box; border-radius: 5px;font-size: 16px;"/>&nbsp;
                <input type="reset" value="重置"  style="width: 80px;height: 30px;box-sizing: border-box; border-radius: 5px;font-size: 16px;"/>&nbsp;
            </td>
        </tr>
    </table>
</form>
</body>
</html>
